class GetDriverInfo {
  String id;
  String userId;
  String userTariffCode;
  String receiptState;
  String driverName;
  String driverPhone;
  String driverGender;
  String driverBirthday;
  String driverNationdriverNation;
  String driverMaritalStatus;
  String driverType;
  String headimgurl;
  String authenticationStatus;
  String idNo;

  GetDriverInfo(
      {this.id,
      this.userId,
      this.userTariffCode,
      this.receiptState,
      this.driverName,
      this.driverPhone,
      this.driverGender,
      this.driverBirthday,
      this.driverNationdriverNation,
      this.driverMaritalStatus,
      this.driverType,
      this.headimgurl,
      this.authenticationStatus,
      this.idNo});

  GetDriverInfo.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    userId = json['user_id'];
    userTariffCode = json['user_tariff_code'];
    receiptState = json['receipt_state'];
    driverName = json['driver_name'];
    driverPhone = json['driver_phone'];
    driverGender = json['driver_gender'];
    driverBirthday = json['driver_birthday'];
    driverNationdriverNation = json['driver_nationdriver_nation'];
    driverMaritalStatus = json['driver_marital_status'];
    driverType = json['driver_type'];
    headimgurl = json['headimgurl'];
    authenticationStatus = json['authentication_status'];
    idNo = json['id_no'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['user_id'] = this.userId;
    data['user_tariff_code'] = this.userTariffCode;
    data['receipt_state'] = this.receiptState;
    data['driver_name'] = this.driverName;
    data['driver_phone'] = this.driverPhone;
    data['driver_gender'] = this.driverGender;
    data['driver_birthday'] = this.driverBirthday;
    data['driver_nationdriver_nation'] = this.driverNationdriverNation;
    data['driver_marital_status'] = this.driverMaritalStatus;
    data['driver_type'] = this.driverType;
    data['headimgurl'] = this.headimgurl;
    data['authentication_status'] = this.authenticationStatus;
    data['id_no'] = this.idNo;
    return data;
  }
}